package controller;


import org.eclipse.swt.custom.TableEditor;
import org.eclipse.swt.events.DisposeListener;
import org.eclipse.swt.events.FocusListener;
import org.eclipse.swt.widgets.Listener;

import controller.listeners.baseconfig.*;
import model.BaseConfigModel;
import view.BaseConfigView;

public class BaseConfigController {

	private BaseConfigView _view;
	private BaseConfigModel _model;
	
	public BaseConfigController(BaseConfigView view) {
		_view = view;
		_model = new BaseConfigModel();
	}
	
	public void iniView() {
	
		_view.SetContentOfTable(_model.getProcesses());
		_view.moveLocalShellToCenter();
		_view.openWindow();
	}
	
	
	public Listener getCloseListener() {
		return new CloseListener(_view, _model);
	}
	
	public DisposeListener getExecuteListener() {
		return new ExecuteListener(_view, _model);
	}
	
	
	public Listener getCheckListener() {
		return new RowCheckListener(_view, _model);
	}

}
